package entity.Car.bo.impl;

import entity.Car.bo.CarBo;
import entity.Car.dao.CarDao;
import entity.Car.model.Car;
import entity.Car.model.Transport;
import entity.Car.model.reference.*;

import java.util.List;

/**
 * Created by vanches on 7.1.15.
 */
public class CarBoImpl implements CarBo{
    CarDao carDao;

    @Override
    public List<Car> getAllCar() {
        return carDao.getAllCar();
    }

    @Override
    public List<Car> carSearch(Brand brand, Model model, double priceMin, double priceMax) {
        return carDao.carSearch(brand,model,priceMin,priceMax);
    }

    @Override
    public Car getCarId(int id) {
        return carDao.getCarId(id);
    }

    @Override
    public void addCar(Car car, Transport transport) {
        carDao.addCar(car,transport);
    }

    @Override
    public void deleteCar(Car car) {
        carDao.deleteCar(car);
    }

    @Override
    public void updateCar(Car car) {
        carDao.updateCar(car);
    }

    @Override
    public List<Transmission> getAllTransmission() {
        return carDao.getAllTransmission();
    }

    @Override
    public Transmission getTransmissionId(int id) {
        return carDao.getTransmissionId(id);
    }

    @Override
    public void addTransmission(Transmission transmission) {
        carDao.addTransmission(transmission);
    }

    @Override
    public void deleteTransmission(Transmission transmission) {
        carDao.deleteTransmission(transmission);
    }

    @Override
    public void updateTransmission(Transmission transmission) {
        carDao.updateTransmission(transmission);
    }

    @Override
    public List<BodyType> getAllBodyType() {
        return carDao.getAllBodyType();
    }

    @Override
    public BodyType getBodyTypeId(int id) {
        return carDao.getBodyTypeId(id);
    }

    @Override
    public void addBodyType(BodyType bodyType) {
        carDao.addBodyType(bodyType);
    }

    @Override
    public void deleteBodyType(BodyType bodyType) {
        carDao.deleteBodyType(bodyType);
    }

    @Override
    public void updateBodyType(BodyType bodyType) {
        carDao.updateBodyType(bodyType);
    }

    @Override
    public List<Brand> getAllBrand() {
        return carDao.getAllBrand();
    }

    @Override
    public Brand getBrandId(int id) {
        return carDao.getBrandId(id);
    }

    @Override
    public void addBrand(Brand brand) {
        carDao.addBrand(brand);
    }

    @Override
    public void deleteBrand(Brand brand) {
        carDao.deleteBrand(brand);
    }

    @Override
    public void updateBrand(Brand brand) {
        carDao.updateBrand(brand);
    }

    @Override
    public List<Color> getAllColor() {
        return carDao.getAllColor();
    }

    @Override
    public Color getColorId(int id) {
        return carDao.getColorId(id);
    }

    @Override
    public void addColor(Color color) {
        carDao.addColor(color);
    }

    @Override
    public void deleteColor(Color color) {
        carDao.deleteColor(color);
    }

    @Override
    public void updateColor(Color color) {
        carDao.updateColor(color);
    }

    @Override
    public List<Condition> getAllCondition() {
        return carDao.getAllCondition();
    }

    @Override
    public Condition getConditionId(int id) {
        return carDao.getConditionId(id);
    }

    @Override
    public void addCondition(Condition condition) {
        carDao.addCondition(condition);
    }

    @Override
    public void deleteCondition(Condition condition) {
        carDao.deleteCondition(condition);
    }

    @Override
    public void updateCondition(Condition condition) {
        carDao.updateCondition(condition);
    }

    @Override
    public List<Currency> getAllCurrency() {
        return carDao.getAllCurrency();
    }

    @Override
    public Currency getCurrencyId(int id) {
        return carDao.getCurrencyId(id);
    }

    @Override
    public void addCurrency(Currency currency) {
        carDao.addCurrency(currency);
    }

    @Override
    public void deleteCurrency(Currency currency) {
        carDao.deleteCurrency(currency);
    }

    @Override
    public void updateCurrency(Currency currency) {
        carDao.updateCurrency(currency);
    }

    @Override
    public List<Model> getAllModel() {
        return carDao.getAllModel();
    }

    @Override
    public Model getModelId(int id) {
        return carDao.getModelId(id);
    }

    @Override
    public void addModel(Model model) {
        carDao.addModel(model);
    }

    @Override
    public void deleteModel(Model model) {
        carDao.deleteModel(model);
    }

    @Override
    public void updateModel(Model model) {
        carDao.updateModel(model);
    }

    @Override
    public List<Privod> getAllPrivod() {
        return carDao.getAllPrivod();
    }

    @Override
    public Privod getPrivodId(int id) {
        return carDao.getPrivodId(id);
    }

    @Override
    public void addPrivod(Privod privod) {
        carDao.addPrivod(privod);
    }

    @Override
    public void deletePrivod(Privod privod) {
        carDao.deletePrivod(privod);
    }

    @Override
    public void updatePrivod(Privod privod) {
        carDao.updatePrivod(privod);
    }

    @Override
    public List<TypeEngine> getAllTypeEngine() {
        return carDao.getAllTypeEngine();
    }

    @Override
    public TypeEngine getTypeEngineId(int id) {
        return carDao.getTypeEngineId(id);
    }

    @Override
    public void addTypeEngine(TypeEngine typeEngine) {
        carDao.addTypeEngine(typeEngine);
    }

    @Override
    public void deleteTypeEngine(TypeEngine typeEngine) {
        carDao.deleteTypeEngine(typeEngine);
    }

    @Override
    public void updateTypeEngine(TypeEngine typeEngine) {
        carDao.updateTypeEngine(typeEngine);
    }

    public CarDao getCarDao() {
        return carDao;
    }

    public void setCarDao(CarDao carDao) {
        this.carDao = carDao;
    }
}
